#include<iostream>
#include<algorithm>
using namespace std;
typedef long long LL;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		LL n, k, a, b;
		cin >> n >> k >> a >> b;
		if (a < b) {
			swap(a, b);
		}
		int ans1 = b + k;
		if (ans1 > n) {
			cout << "NO" << endl;
		}
		else {
			cout << "YES" << endl;
		}
	}
	return 0;
}